import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextLine()) { 
            String str = in.nextLine();
            StringBuffer sb = new StringBuffer();
            for(int i = 0; i < str.length(); i++){
                char ch = str.charAt(i);
                if(ch >= '0' && ch <= '9'){
                    sb.append(ch);
                }
            }
            System.out.println(sb.toString());
        }
    }
}


